package com.swx.identityservice.service;

import com.swx.identityservice.models.ScbpDept;
import com.swx.identityservice.models.ScbpDeptTree;

import java.util.List;

/**
 * Created by SCBP
 */
public interface ScbpDeptService extends CrudService<ScbpDept> {
    List<ScbpDeptTree> getDeptsAsTree(Object key) throws Exception;


    List<ScbpDeptTree> getDeptsAndRolesAsTree(Object key) throws Exception;
    List<ScbpDept> selectDeptsByPid(Integer id);

    List<ScbpDept> getRolesByDeptIds(Integer[] id);


    List<ScbpDept> selectDeptsList();

    List<ScbpDept> selectUnit();

     ScbpDept selectDeptById(Integer id);
     ScbpDept selectDeptByName(String Name);






}
